<template>
    <div class="entry">
         <section class="page-head">
      <!-- <el-col :span="12" class="toolbar" style="padding-bottom: 0px;text-align:left;">
        <el-form  :inline="true" :model="filters">
            <el-form-item>
              <el-input v-model="filters.name" placeholder="词条名称"></el-input>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" v-on:click="queryUsers">查询</el-button>
            </el-form-item>
        </el-form>
      </el-col>
       <el-col :span="12" style="text-align:right;" >
              <el-button type="primary" v-on:click="addEntryFunc">新增</el-button>
          </el-col> -->
          <el-form :inline="true" :model="formInline" class="demo-form-inline">
  <el-form-item label="分类">
    <el-input v-model="formInline.catgrouy" placeholder="分类"></el-input>
  </el-form-item>
  <el-form-item label="词条名称">
    <el-input v-model="formInline.entry" placeholder="词条名称"></el-input>
  </el-form-item>
   <el-form-item label="标签">
    <el-input v-model="formInline.tag" placeholder="标签"></el-input>
  </el-form-item>
  <el-form-item label="状态">
    <el-select v-model="formInline.state" placeholder="状态">
      <el-option label="区域一" value="shanghai"></el-option>
      <el-option label="区域二" value="beijing"></el-option>
    </el-select>
  </el-form-item>
  <el-form-item>
    <el-button type="primary" @click="onSubmit">查询</el-button>
  </el-form-item>
 
</el-form>
    </section>
    <!-- 表格 -->
    <div class="entry-table">
        <el-table
    :data="tableData"
    stripe
    style="width: 100%">
    <el-table-column
      prop="name"
      label="名称"
      width="180">
    </el-table-column>
    <el-table-column
      prop="type"
      label="描述"
      width="180">
    </el-table-column>
    <el-table-column
      prop="value"
      label="审核人员">
    </el-table-column>
    <el-table-column
      prop="model"
      label="发布时间">
    </el-table-column>
    <el-table-column
      prop="source"
      label="状态">
    </el-table-column>
     <el-table-column
     fixed="right"
      prop="source"
      label="操作">
        <template slot-scope="scope">
            <el-button size="mini" type="primary"  @click="addEntryFunc">审核</el-button>
          
        </template>
    </el-table-column>
  </el-table>
    </div>
    </div>
</template>
<script>
export default {
    data(){
        return{
            filters:{
                name:''
            },
            formInline: {
          catgrouy: '',
          entry: '',
          tag:'',
          state:''
        },
            tableData:[
                {
          value: '2016-05-02',
          name: '王小虎',
          type: '上海市普陀区金沙江路 1518 弄',
          model:'XXXX',
          source:'XXXX'
        },
            ]
        }
    },
    methods:{
        queryUsers(){

        },
       onSubmit() {
        console.log('submit!');
      },
        //跳转新增
        addEntryFunc(){
             this.$router.push('add-entry-template')
        }
    }
    
}
</script>
<style scoped>
.entry-table{padding:10px 0;}
.page-head{height:100px;}

</style>